package cn.gok.mmall.service;

import cn.gok.mmall.common.ServerResponse;
import cn.gok.mmall.pojo.User;

/**
 * @Author: chenfan
 * @Description:
 */
public interface IUserService {

    User login(String username,String password);

    ServerResponse addUser(User user);

    ServerResponse checkValid(String str, String type);

    ServerResponse getQuestion(String username);

    ServerResponse checkAnswer(String username,String question,String answer);

    ServerResponse updatePasswordByUsername(String username,String newPassword,String forgetToken);

}
